<!DOCTYPE html>
{% load staticfiles %}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <link type="text/css" href='{% static 'books/css/index.css' %}' rel="stylesheet">
    <script type="text/javascript" src='{% static 'js/html5.js' %}'></script>
</head>
<body>
    <div class ='head wp'>
        <div class="head_info f_l">django的表单和用户权限测试</div>
        <div class="f_r"><a class='head_more' href="{% url "my_login" %}">登录个人主页</a></div>
    </div>

<div class="f_cl"></div>
    <div class = 'middle wp'>
        {% for items in news_list %}
            <div>
            <h2>{{ items.tittle}}</h2>
            <h3>{{ items.desc}}</h3>
            <p>{{ items.content}}</p>
            </div>
            <br>
        {% endfor %}

    </div>

    <div class = 'foot wp'>
    </div>

</body>
</html>